package com.xiaoxiang.auth.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiaoxiang.auth.dto.MenuDo;
import com.xiaoxiang.auth.entity.Menu;

import java.util.List;

/**
 * (Menu)表数据库访问层
 *
 * @author haha
 * @since 2022-03-19 15:25:55
 */
public interface MenuDao extends BaseMapper<Menu> {

    List<MenuDo> queryAllByRoleId(Long roleId);

    List<Menu> queryByParentId(Long id);
}
